package com.ztp.android.usermanager;

import org.apache.ftpserver.ftplet.UserManager;
import org.apache.ftpserver.usermanager.PasswordEncryptor;
import org.apache.ftpserver.usermanager.UserManagerFactory;

import com.example.ztpandroid233.SQLiteHelper;

import android.database.sqlite.SQLiteOpenHelper;



public class AndroidDbUserManagerFactory implements UserManagerFactory {

	private String adminName;
	private PasswordEncryptor pw;
	private SQLiteHelper helper;
	
	public AndroidDbUserManagerFactory(String adminName, PasswordEncryptor pw, SQLiteHelper helper){
		this.adminName = adminName;
		this.pw = pw;
		this.helper = helper;
	}
	
	
	@Override
	public UserManager createUserManager() {
		return (UserManager) new AndroidDbUserManager(helper, adminName, pw);
	}

}
